const fs = require('fs');

let bool = fs.existsSync(__dirname+'/2.html');

console.log(bool);